package com.mobor.moborsvr.obj.category.service;

import java.util.List;
import java.util.concurrent.ExecutionException;

import com.mobor.moborsvr.obj.category.categories.CategoryObjectDO;

/**
 * Preprocessor for object categories. Manipulates with objects of type {@link CategoryObjectDO} before their persistence/returning to MVC controller.
 * @author teroleg
 *
 */
public interface CategoryObjectService {
	/**
	 * Set up search, find and manipulate found object categories.
	 * @return list of object categories
	 * @throws InterruptedException
	 * @throws ExecutionException
	 */
	public List<CategoryObjectDO> getObjectCategories();
	/**
	 * Search for object category having provided id value.
	 * @param coId id of the category to search 
	 * @return object category with required id
	 */
	public CategoryObjectDO getObjectCategory(Long coId);

}